<?php

namespace App\Livewire\Components;

use Carbon\Carbon;
use Livewire\Component;

class ArchiveYear extends Component
{
    public function render()
    {
        $tenYearsAgo = Carbon::now()->subYears(9);
        $years = range($tenYearsAgo->year, Carbon::now()->year);
        return view('livewire.components.archive-year', [
            'years'     => array_reverse($years),
        ]);
    }
}
